package cn.iocoder.yudao.module.digital.api.cardkeymanager.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Description:
 * Author: li
 * Date: 2024/3/12
 */
@Data
@NoArgsConstructor
public class CardKeySecretDTO {
    private String cardNumber;
    private String code;
    private String pin;

    public CardKeySecretDTO(String cardNumber, String code, String pin) {
        // 字段都可能为空，去除前后空格
        this.cardNumber = cardNumber != null ? cardNumber.trim() : null;
        this.code = code != null ? code.trim() : null;
        this.pin = pin != null ? pin.trim() : null;
    }

}
